package kr.kdev.dg1s;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class menu extends Activity implements OnClickListener{
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.menu);
        Button sikdan = (Button) findViewById(R.id.sikdanbutton);
        Button sigan = (Button) findViewById(R.id.siganbutton);
        Button chat = (Button) findViewById(R.id.chattingbutton);
        sikdan.setOnClickListener(this);
        sigan.setOnClickListener(this);
        chat.setOnClickListener(this);        
    }
    public void onClick(View v) {
		if(v.getId() == R.id.sikdanbutton) {
    		Intent intent = new Intent(this, Gpsicpyo.class);
    		startActivity(intent);
    		}
		if(v.getId() == R.id.siganbutton) {
    		Intent intent = new Intent(this, Siganpyo.class);
    		startActivity(intent);
    		}		
		if(v.getId() == R.id.chattingbutton) {
    		Intent intent = new Intent(this, Chatting.class);
    		startActivity(intent);
    		}	
	}
}
